from .log import make_logger
logger = make_logger(20)

class Deletable:
    def __init__(self):
        # logger.debug("__init__")
        self.isDel = False

    def __del__(self):
        # logger.debug("__del__")
        if not self.isDel:
            self.destroy()

    def destroy(self):
        self.isDel = True
